package org.tulkas.selector;

import org.w3c.dom.Element;

/**
 * @author <a href="mailto:tulkas.web@gmail.com">Tulkas</a>
 *
 */
public interface Filter {
	public static final int PRIORITY_ID = 10;
	public static final int PRIORITY_TAG = 20;
	public static final int PRIORITY_CLASS = 30;
	public static final int PRIORITY_ATTR = 50;
	public static final int PRIORITY_COMBINATOR = 100;
	public static final int PRIORITY_PSEUDO_CHILD = 150;
	public static final int PRIORITY_ANY = 300;

	boolean matches(Element element);

	int getPriority();
}
